package alexattar.gdxtest;

import java.util.Locale;

public enum ShipModel implements Item {

	USP_TALON("USP Talon", 6000, 1),
	GENCORE_PHOENIX("Gencore Phoenix", 12000, 2);
	
	private final String name;
	private final int price;
	private final int firingCapacity;
	
	private ShipModel(String name, int price, int firingCapactiy) {
		this.name = name;
		this.price = price;
		this.firingCapacity = firingCapactiy;
	}
	
	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getSimpleName() {
		return "ship-model-" + name().replaceAll("_", "-").toLowerCase();
	}

	@Override
	public int getPrice() {
		return price;
	}
	
	public int getFiringCapacity(){
		return firingCapacity;
	}
	
	@Override
	public String toString() {
		return String.format(Locale.CANADA, "%s (%s) - Firing: %d", name, "$"+price, firingCapacity);
	}

}
